<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        ul{
            bottom: 0;
           flex: 1;
            list-style: none;
            display: flex;
           
        }
        li{ 
            flex:1;
            float: left;
            height: 50px;
            line-height: 50px;
            text-align: center;
        }
        .div1{
         display: flex;
         height: 667px;
          flex-direction: column;
        }
        .active{
            background-color: seagreen;
        }
       .div2{
        height: 100%;
        flex: 1;
       }
       #box{
        bottom: 0;
       }
    </style>
</head>
<body>
  <div class="div1">
    <div class="div2"></div>
    <div id="box">
        <ul>
            <li v-for="(item,index) in list" @click="handleClick(index)" :class="current===index?'active':'none'">
            {{item}}
            </li>
        </ul>   
    </div>
  </div>
    <script src="./vue2.js"></script>
    <script>
        new Vue({
            el:'#box',
            data:{
                list:['首页','详情','个人'],
                current:''
            },
            methods:{
                handleClick(ind){
                    this.current=ind
                }
            }
        })
    </script>
</body>
</html>